package world.snowcrystal.commons.model.dto.interfaceinfo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 接口信息
 *
 * @TableName interface_info
 */
@Data
@Accessors(chain = true)
public class InterfaceInfoAddRequest implements Serializable {

    /**
     * 名称
     */
    private String name;

    /**
     * 描述
     */
    private String description;

    /**
     * 接口地址
     */
    private String url;

    /**
     * 请求头
     */
    private String requestHeader;

    /**
     * 响应头
     */
    private String responseHeader;

    /**
     * 请求参数，比如
     * <code>
     *     [
     *             {"name": "username", "description": "用户名", "required": true, "type": "string"},
     *             {"name": "password", "description": "密码", "required": true, "type": "string"}
     *     ]
     * </code>
     */
    private String requestParams;

    /**
     * 接口状态（0-关闭，1-开启）
     */
    private Integer status;

    /**
     * 请求类型
     */
    private String method;

    @Serial
    private static final long serialVersionUID = 1L;

}
